home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc19
/
gemfsc19.lzh
/
GEMFBIND
/
VVALUATO.S
< prev
next >
Wrap
Text File
|
1993-03-26
|
2KB
|
61 lines
;*========================================================================
;* VDIFAST Public Domain VDI bindings.
;*========================================================================
;*------------------------------------------------------------------------
;* Input valuator.
;*------------------------------------------------------------------------
globl _vsm_valuator
_vsm_valuator:
link a6,#-6
st -6(a6)
bra.b v_valuator
globl _vrq_valuator
_vrq_valuator:
link a6,#-6
clr.b -6(a6)
v_valuator:
; .cargs #8,handle.w,valin.w,valout.l,term.l,status.l
handle = 8
valin = 10
valout = 12
term = 16
status = 20
; VContrl #29,,,#1
move.w handle(a6),-(sp) ; contrl[6]
clr.l -(sp) ; contrl[5,4]
move.w #1,-(sp) ; contrl[3]
subq.l #2,sp ; contrl[2]
clr.w -(sp) ; contrl[1]
move.w #29,-(sp) ; contrl[0]
subq.l #4,sp ;* -> ptsout
pea -4(a6) ;* -> intout
subq.l #4,sp ;* -> ptsin
pea valin(a6) ;* -> intin
pea 16(sp) ;* -> contrl
move.l sp,d1
jsr vditrap
move.l valout(a6),a0 ;* Return value
move.w -4(a6),(a0) ;* from intout[0].
move.l term(a6),a0 ;* Return terminator
move.w -2(a6),(a0) ;* from intout[1].
tst.b -6(a6) ;* Check sample-mode flag, if
beq.b skip ;* not sample mode, skip status.
move.l status(a6),a0 ;* In sample mode, we have to return
move.w 28(sp),(a0) ;* status from contrl[4].
skip:
unlk a6
rts
end